import { flagOptions, IllnessTimeOption } from "@/Constants"
import type { IllnessTime } from "@/enums"

//获取患病时间
 export const formatIllnessTime = (value?: IllnessTime) => {
  const obj = IllnessTimeOption.find((item) => item.value === value)
  return obj?.label
}
 export const formatConsultFlag = (flag?: 0 | 1) => {
  const obj = flagOptions.find((item) => item.value === flag)
  return obj?.label
}